sql語句根據日期查詢,本周,本月,本年,今日相關統計 昨天 select * from tb where datediff(day, 時間字段 ,getdate()) = 1 今天 select * from tb where ...